//package org.arch_learn.netty_rpc.consumer.interceptor;
//
//import org.springframework.web.servlet.HandlerInterceptor;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.util.concurrent.atomic.AtomicInteger;
//
//public class RequestCountInterceptor implements HandlerInterceptor {
//    private AtomicInteger requestCount;
//
//    public RequestCountInterceptor(AtomicInteger requestCount) {
//        this.requestCount = requestCount;
//    }
//
//    @Override
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//        requestCount.incrementAndGet();
//        return true;
//    }
//}
